//
//  NGNavigationController.swift
//  NingguoForum
//
//  Created by zhengsw on 2022/11/10.
//  Copyright © 2022 zhengsw. All rights reserved.
//

import UIKit

class NGNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setNavigationBarHidden(true, animated: true)
    }
    
    //mark - push(二级界面)时隐藏控制器底部tabbar
    override func pushViewController(_ viewController:UIViewController, animated:Bool) {
        if children.count > 0{
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }
}
